package com.hj.authority.domain.convert;


import com.hj.authority.domain.entity.SysMenu;
import com.hj.authority.domain.vo.SysMenuVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author hj
 * @Date 2023/4/27
 * @Description: 动态编译.vo与entity互转
 */
@Mapper
public interface SysMenuConvert {

    SysMenuConvert INSTANCE = Mappers.getMapper(SysMenuConvert.class);

    SysMenu convert(SysMenuVO vo);

    SysMenuVO convert(SysMenu entity);

    List<SysMenuVO> convertList(List<SysMenu> list);


}
